package com.naiterui.ehp.bs.search.vo;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class DiagnosisIndexVO {

    private Long id;
    private String name;
    private Long doctorId = 0L;
    private String idType;
    private String mainCode;
    private String attachCode;
    private String alias = "";
    private String commonKeywords = "";
    private Integer weightDef;
    private Integer weightCustom;

    public DiagnosisIndexVO() {

    }

    /**
     * 自定义诊断
     *
     * @param id
     * @param doctorId
     * @param name
     */
    public DiagnosisIndexVO(Long id, Long doctorId, String name) {
        this.id = id;
        this.doctorId = doctorId;
        this.name = name;
        idType = id + "-" + 1;
    }

    /**
     * 标准诊断
     *
     * @param id
     * @param name
     * @param alias
     * @param commonKeywords
     * @param mainCode
     * @param attachCode
     * @param weightDef
     * @param weightCustom
     */
    public DiagnosisIndexVO(Long id, String name, String alias, String commonKeywords, String mainCode, String attachCode, Integer weightDef,
                            Integer weightCustom) {
        this.id = id;
        this.name = name;
        idType = id + "-" + 0;
        this.alias = alias;
        this.commonKeywords = commonKeywords;
        this.mainCode = mainCode;
        this.attachCode = attachCode;
        this.weightDef = weightDef;
        this.weightCustom = weightCustom;
    }

    /**
     * gb95
     *
     * @param id
     * @param mainCode
     * @param name
     */
    public DiagnosisIndexVO(Long id, String mainCode, String name) {
        this.id = id;
        this.mainCode = mainCode;
        this.name = name;
        idType = id + "-" + 2;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getCommonKeywords() {
        return commonKeywords;
    }

    public void setCommonKeywords(String commonKeywords) {
        this.commonKeywords = commonKeywords;
    }

    public String getMainCode() {
        return mainCode;
    }

    public void setMainCode(String mainCode) {
        this.mainCode = mainCode;
    }

    public String getAttachCode() {
        return attachCode;
    }

    public void setAttachCode(String attachCode) {
        this.attachCode = attachCode;
    }

    public Integer getWeightDef() {
        return weightDef;
    }

    public void setWeightDef(Integer weightDef) {
        this.weightDef = weightDef;
    }

    public Integer getWeightCustom() {
        return weightCustom;
    }

    public void setWeightCustom(Integer weightCustom) {
        this.weightCustom = weightCustom;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

}
